package nuaa.domain;

import java.io.Serializable;
import java.sql.Date;

/**
 * 对出游地的收藏
 */
public class Collection implements Serializable {
    private Integer collectionId;       //id，自动增长的
    private String destinations;        //出游路径，逗号分割
    private Date time;                  //加入收藏的时间

    @Override
    public String toString() {
        return "Collection{" +
                "collectionId=" + collectionId +
                ", destinations='" + destinations + '\'' +
                ", time=" + time +
                '}';
    }

    public Integer getCollectionId() {
        return collectionId;
    }

    public void setCollectionId(Integer collectionId) {
        this.collectionId = collectionId;
    }

    public String getDestinations() {
        return destinations;
    }

    public void setDestinations(String destinations) {
        this.destinations = destinations;
    }

    public Date getTime() {
        return time;
    }

    public void setTime(Date time) {
        this.time = time;
    }
}
